package com.pengtu.gsj.controller.tag;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.pengtu.gsj.controller.base.BaseController;

/** 
 * @author zl 
 * @version 创建时间：2017年4月5日 下午5:02:44 
 * 类说明 
 */
@Controller
@RequestMapping("/taglib/")
public class TagController extends BaseController {
	
	/**
	 * 树结构选择标签（treeselect.tag）
	 */
	@RequestMapping("treeselect")
	public String treeselect(Model model,HttpServletRequest request){
		model.addAttribute("url", request.getParameter("url"));
		model.addAttribute("extId", request.getParameter("extId"));
		model.addAttribute("checked", request.getParameter("checked"));
		model.addAttribute("selectIds", request.getParameter("selectIds"));
		model.addAttribute("module", request.getParameter("module"));
		return "taglib/tagTreeselect";
	} 
	
	/**
	 * 选择图标
	 * @return
	 */
	@RequestMapping("iconselect")
	public String iconselect(Model model,HttpServletRequest request){
		model.addAttribute("value", request.getParameter("value"));
		return "taglib/tagIconselect";
	}
	
}
